import request from '@/utils/request'

// 查询退款记录列表
export function listRefundInfo(query) {
  return request({
    url: '/business/refundInfo/list',
    method: 'get',
    params: query
  })
}

// 查询退款记录详细
export function getRefundInfo(baseId) {
  return request({
    url: '/business/refundInfo/' + baseId,
    method: 'get'
  })
}

// 新增退款记录
export function addRefundInfo(data) {
  return request({
    url: '/business/refundInfo',
    method: 'post',
    data: data
  })
}

// 修改退款记录
export function updateRefundInfo(data) {
  return request({
    url: '/business/refundInfo',
    method: 'put',
    data: data
  })
}

// 删除退款记录
export function delRefundInfo(baseId) {
  return request({
    url: '/business/refundInfo/' + baseId,
    method: 'delete'
  })
}
